/*******************************************************************************
  * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
  * @file     analogClock.h
  * @author   UartTFT Application Team
  * @version  V0.0.1
  * @date     2023-01-04
  * @brief    This file contains the functions prototypes for the UartTFT
  *           Application display firmware.
 ********************************************************************************/

#ifndef ANALOGCLOCK_H_
#define ANALOGCLOCK_H_

#include "data.h"

/*clock*/
typedef struct
{
	uint16_t x;
	uint16_t y;
	uint16_t Image_BG;
	uint8_t L_hour;
	uint8_t S_hour;
	uint8_t W_hour;
	uint32_t Color_hour;
	uint8_t L_min;
	uint8_t S_min;
	uint8_t W_min;
	uint32_t Color_min;
	uint8_t L_sec;
	uint8_t S_sec;
	uint8_t W_sec;
	uint32_t Color_sec;

	uint16_t x_pic;
	uint16_t y_pic;
	uint16_t w_pic;
	uint16_t h_pic;
	uint32_t addr_pic;
	uint32_t len_pic;
	uint8_t flag_pic;

	uint16_t x_cen;
	uint16_t y_cen;
	uint16_t w_cen;
	uint16_t h_cen;
	uint32_t addr_cen;
	uint32_t len_cen;
	uint8_t flag_cen;
} Clock_Info;

extern Clock_Info gClock_Info[];

extern uint32_t Lay_temp;
extern uint8_t Clock_num;
extern uint8_t Clock_flag;
/***************/

void show_Clock(void);
void Clock_display(uint8_t type, uint8_t *buff);
uint8_t Display_Clock(uint8_t num, uint8_t status);

#endif /* ANALOGCLOCK_H_ */
